<%@ page language="java" contentType="text/html; charset=utf-8" pageEncoding="utf-8"%>
<%@taglib uri="http://java.sun.com/jsp/jstl/core" prefix="c"%>
<!DOCTYPE html PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN" "http://www.w3.org/TR/html4/loose.dtd">
<html>
<head>
	<title><c:url value="${applicationTitle}"/></title>
	<meta http-equiv="Content-Type" content="text/html; charset=UTF-8"/>
	<link rel="stylesheet" href='<c:url value="/resources/css/main.css"/>' type="text/css" />
	<link rel="stylesheet" href='<c:url value="/resources/css/login.css"/>' type="text/css" />
	<script language="JavaScript" type="text/javascript">
		<!--
		// break out of frames
		if (self.parent.frames.length != 0) {
			self.parent.location=document.location;
		}
        function updateFields(el) {
            if (el.checked) {
                document.loginForm.accountName.disabled = true;
                document.loginForm.password.disabled = true;
            }
            else {
                document.loginForm.accountName.disabled = false;
                document.loginForm.password.disabled = false;
                document.loginForm.accountName.focus();
            }
        }
		//-->
	</script>
</head>
<body>
<form action="login" name="loginForm" method="post">
<div align="center">
    <!-- BEGIN login box -->
    <div id="jive-loginBox">
        <div align="center" id="jive-loginTable">
            <span id="jive-login-header" style="background: transparent url(<c:url value='/resources/images/login_logo.gif'/>) no-repeat left; padding: 29px 0 10px 205px;">
            	管理控制台
            </span>
            <div style="text-align: center; width: 380px;">
            <table cellpadding="0" cellspacing="0" border="0" align="center">
                <tr>
                    <td align="right" class="loginFormTable">
                        <table cellpadding="2" cellspacing="0" border="0">
                        <noscript>
                            <tr>
                                <td colspan="3">
                                    <table cellpadding="0" cellspacing="0" border="0">
                                    <tr valign="top">
                                        <td><img src="<c:url value='/resources/images/error-16x16.gif'/>" width="16" height="16" border="0" alt="" vspace="2"></td>
                                        <td><div class="jive-error-text" style="padding-left:5px; color:#cc0000;">Error: You don't have JavaScript enabled. This tool uses JavaScript and much of it will not work correctly without it enabled. Please turn JavaScript back on and reload this page.</div></td>
                                    </tr>
                                    </table>
                                </td>
                            </tr>
                        </noscript>
                        <c:if test="${message > ''}">
                            <tr>
                                <td colspan="3">
                                    <table cellpadding="0" cellspacing="0" border="0">
                                    <tr valign="top">
                                        <td><img src="<c:url value='/resources/images/error-16x16.gif'/>" width="16" height="16" border="0" alt="" vspace="2"></td>
                                        <td><div class="jive-error-text" style="padding-left:5px; color:#cc0000;"><c:out value="${message}"/></div></td>
                                    </tr>
                                    </table>
                                </td>
                            </tr>
                        </c:if>
                        <tr>
                            <td><input type="text" name="accountName" size="15" maxlength="100" id="u01" value=""></td>
                            <td><input type="password" name="password" size="15" maxlength="100" id="p01"></td>
                            <td align="center"><input type="submit" value="&nbsp; 登录 &nbsp;"></td>
                        </tr>
                        <tr valign="top">
                            <td class="jive-login-label"><label for="u01">用户名</label></td>
                            <td class="jive-login-label"><label for="p01">密码</label></td>
                            <td>&nbsp;</td>
                        </tr>
                        </table>
                    </td>
                </tr>
                <tr>
                    <td align="right">
                        <div align="right" id="jive-loginVersion">
                        User Center, 版本: 2.0
                        </div>
                    </td>
                </tr>
            </table>
            </div>
        </div>
    </div>
    <!-- END login box -->
</div>
</form>
<script language="JavaScript" type="text/javascript">
<!--
    if (document.loginForm.accountName.value == '')  {
	    document.loginForm.accountName.focus();
    } else {
        document.loginForm.password.focus();
    }
//-->
</script>
</body>
</html>
